<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/1/6
  Time: 20:46
  To change this template use File | Settings | File Templates.
--%>
<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<html>
<head>
    <title>撤销合同</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
    <script type="text/javascript" src="plug-in/mutiLang/zh-cn.js"></script>
    <script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="plug-in/jquery/jquerysession.js"></script>
</head>
<body>
<input type="hidden" name="id" id="id" value="${t.id}">
    <p style="text-align: center;font-size: xx-large">撤销合同</p>
    <p style="text-align: center;">撤销合同将影响其关联设备的服务条款，请填写撤销原因。</p>
    <p style="text-align: center">原因:<textarea cols="80" rows="5" name="cancelDes" id="cancelDes" onchange="chan()"></textarea></p>


</body>
<script type="text/javascript">
    function chan(){
        var id=$("#id").val();
        var cancelDes=$("#cancelDes").val();
        $.session.set('cancelDes', cancelDes);
        /*$.ajax({
            url: "cbsContractController.do?doUpdateCancelDes",
            data: {
                "id":id,
                "cancelDes":cancelDes
            },
            cache: false,
            dataType: 'json',
            type: 'POST',
            error : function() {// 请求失败处理函数
            },
            success : function(data) {
                /!*window.location = "cbsContractController.do?cbsContract&code=recoke";*!/
                /!*var d = $.parseJSON(data);
                console.log(d);
                alert(d)
                if (d.success) {
                    window.location = "cbsContractController.do?cbsContract&code=update";
                }else{
                    return false;
                }*!/
            }
        });*/
    }
</script>
</html>
